import App from '../App.vue'
import { createApp } from 'vue';
import { createI18n } from 'vue-i18n/index'

const i18n = createI18n({
    // set locale
    locale: 'zh-CN',
    // set fallback locale
    fallbackLocale: 'en',
    // Close warning
    silentFallbackWarn: true,
    silentTranslationWarn: true,
    // set locale messages
    messages: {
        "zh-CN": require('./locales/zh-CN'),
        "zh-TW": require('./locales/zh-TW'),
        "en": require('./locales/en'),
        "ja": require('./locales/ja')
    }
});

createApp(App).use(i18n);

export default i18n
